<script type="text/javascript">
	function searchTransOrderTracking() {
		setGridSearchParams('transOrderTracking_list','ordersTrackingSearchForm',false,reloadTransOrderTracking);
	}
	
	//表格查询  
	function reloadTransOrderTracking() {
		var params = transOrderTracking_list.datagrid('options').queryParams; //先取得 datagrid 的查询参数  
		printLog(params);
		transOrderTracking_list.datagrid('reload'); //设置好查询参数 reload 一下就可以了  
		transOrderTracking_list.datagrid('unselectAll');
		transOrderTracking_list.datagrid('uncheckAll');
	}
	
	function clearTransOrderTracking() {
		
		$('#ordersTrackingSearchForm').form('clear');
	}
</script>
<div class="easyui-layout" data-options="fit:true">
	<div data-options="region:'north',border:false,title:'快件查询'" style="height: 150px; overflow: hidden;">
		<table cellpadding="5">
			<tr>
				<td>
					运单号：
				</td>
				<td>
					<form id="ordersTrackingSearchForm">
							<textarea style="height: 100px;width:650px"  name="orderNos" class="easyui-validatebox"  data-options="prompt: '查询多个运单号码，请用回车换行'"></textarea>
					</form>
				</td>
				<td>
					<@eu.linkbutton showName="查询" shiro="trans:transOrderTrack:search" iconCls="icon-search" onclick="searchTransOrderTracking()"/>
				</td>
				<td>
					<@eu.linkbutton showName="清除" shiro="trans:transOrderTrack:clear" iconCls="icon-clear" onclick="clearTransOrderTracking()"/>
				</td>
			</tr>
		</table>
	</div>
	<div data-options="region:'center',border:false,title:'跟踪结果'">
		<@eu.datagrid id="transOrderTracking_list" idField="id" 
			 url="transOrderTrack.do?loadList&orderNos=XXX" rownumbers="false" pagination="true"
			 item="com.xdtech.trans.vo.TransOrderTrackItem"/>
	</div>
</div>